package com.dlkj.threadPool.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.Embeddable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Author : lei
 * @Company ：DiLang Technology
 * @Date : 2019/1/17 16:18
 * @Description :
 **/
@Entity
@Table(name = "sys_user_role")
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class SysUserRole extends UserRoleKey {
    //复合主键
    @EmbeddedId
    private UserRoleKey id;
}
